﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Abp.Domain.Entities.Auditing;
using FwProject.ShoppingMall.EventAdvertising;

namespace FwProject.EventAdvertising.Dto
{
    /// <summary>
    /// 用户在商城中的优惠券
    /// </summary>
    [AutoMap(typeof(ShopUserCoupon))]
    public class ShopUserCouponDto: EntityDto<Guid>
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        [Display(Name = "用户编号")]
        public long UserId { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 商城优惠券编号
        /// </summary>
        [Display(Name = "商城优惠券编号")]
        public Guid ShopCouponId { get; set; }
       /// <summary>
       /// 商城优惠券你对象
       /// </summary>
        public ShopCouponDto ShopCoupon { get; set; }

        /// <summary>
        /// 默认0未使用1已使用， 优惠券使用状态
        /// </summary>
        [Display(Name = "优惠券使用状态")]
        public UseStatus UseStatus { get; set; } = UseStatus.Unused;

        /// <summary>
        /// 优惠券使用后对应的订单编号
        /// </summary>
        [Display(Name = "优惠券使用后对应的订单状态")]
        public string OrderNumber { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public long? CreatorUserId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime CreationTime { get; set; }
    }

}
